package com.ant.storage.service;

import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.PlannedDto;
import com.ant.storage.dto.PolicyDto;
import com.ant.storage.pojo.Planned;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.validation.BindingResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author melon
 * @since 2022-11-07
 */
public interface IPlannedService extends IService<Planned> {

    /**
     * 添加计划采购单
     * @param planned
     * @param bindingResult
     * @return
     */
    ResultVo addPlan(PlannedDto planned, BindingResult bindingResult);

    /**
     * 计划采购通过添加采购池
     * @param id
     * @return
     */
    ResultVo adoptPlannedApply(Integer id);

    /**
     * 获取所有数据
     * @param dto
     * @return
     */
    PageInfo<Planned> querylist(PlannedDto dto);


    ResultVo getPlannedDetailsById(Integer id);

    ResultVo policyGenerateSubscribe(PolicyDto dto);

    ResultVo getPolicySubscribe(Integer id);

    ResultVo getPlannedProcurement(Integer warehouseId);
}
